/**
 * Copyright &copy; 2016-2017 <a href="https://www.lczyfz.com">联创智云</a> All rights reserved.
 */
package com.lczyfz.campusinfo.modules.campusinfohelp.entity;

import org.hibernate.validator.constraints.Length;

import com.lczyfz.campusinfo.common.persistence.DataEntity;

/**
 * 帮助中心Entity
 * @author zms
 * @version 2018-04-16
 */
public class CampusinfoHelp extends DataEntity<CampusinfoHelp> {
	
	private static final long serialVersionUID = 1L;
	private String title;		// 简称
	private String helpShort;		// 标题
	private String content;		// 内容
	
	public CampusinfoHelp() {
		super();
	}

	public CampusinfoHelp(String id){
		super(id);
	}

	@Length(min=1, max=30, message="简称长度必须介于 1 和 30 之间")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	@Length(min=1, max=30, message="标题长度必须介于 1 和 30 之间")
	public String getHelpShort() {
		return helpShort;
	}

	public void setHelpShort(String helpShort) {
		this.helpShort = helpShort;
	}
	
	@Length(min=0, max=512, message="内容长度必须介于 0 和 512 之间")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
}